median of a triangle example problems